<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.selectWidth2 {
	width: 211px;
}

.selectWidth1 {
	width: 298px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	<span class="color_red">*</span>申请奖励项目情况介绍
</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="reward" cellspacing="1">
<tr>
		<td nowrap width="15%" align="right">奖励类型：</td>
		<td nowrap colspan="5" valign="middle" width="90%"><label> <input
				type="radio" class="do " id="reward_type_01" onclick="rewardRadio(this)"
				style="vertical-align: middle;" name="reward_type" label="产品播出"
				value="01" /><span style="vertical-align: middle;">产品播出</span>
		</label> <label> <input type="radio" class="do " id="reward_type_02" onclick="rewardRadio(this)"
				style="vertical-align: middle;" name="reward_type" label="游戏运营"
				value="02" /><span style="vertical-align: middle;" >游戏运营</span>
		</label> <label> <input type="radio" class="do " id="reward_type_03" onclick="rewardRadio(this)"
				style="vertical-align: middle;" name="reward_type" label="奖励"
				value="03" /><span style="vertical-align: middle;" >奖励</span>
		</label>
		<input type="hidden" name="reward/reward_type_value" id="reward_type_value" class="required"
			value="<x:out select="$xmlData/data/reward/reward_type_value" />"
			label="奖励类型" /> 
	<input type="hidden" name="reward/reward_type_name" id="reward_type_name"
			value="<x:out select="$xmlData/data/reward/reward_type_name" />"
			label="奖励类型" /></td>
	</tr>
</table>



<table class="t_css" width="100%" border="0" cellpadding="0" id="reward1" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;<span class="color_red">*</span>出版发行或播出原创动漫影视产品的单位填写</td>
	</tr>
	
	
	<tr>
		<td nowrap width="10%" align="right">申请奖励项目名称：</td>
		<td nowrap colspan="5"><input 
			name="reward/ctitle" label="申请奖励项目名称" type="text" maxlength="50"
			class="input_css required" style="width: 80%" 
			value="<x:out select="$xmlData/data/reward/ctitle" />" /></td>
	</tr>
	<tr>
		<td nowrap align="right" valign="middle" width="10%">类型：</td>
		<td nowrap colspan="5" valign="middle" width="90%"><label> <input
				type="checkbox" class="do " id="advant_01"
				style="vertical-align: middle;" name="advant" label="平面动漫作品"
				value="01" /><span style="vertical-align: middle;">平面动漫作品</span>
		</label> <label> <input type="checkbox" class="do " id="advant_02"
				style="vertical-align: middle;" name="advant" label="影视作品"
				value="02" /><span style="vertical-align: middle;">影视作品</span>
		</label> <label> <input type="checkbox" class="do " id="advant_03"
				style="vertical-align: middle;" name="advant" label="动漫影视作品"
				value="03" /><span style="vertical-align: middle;">动漫影视作品</span>
		</label><label><input type="checkbox" class="do " id="advant_04"
				style="vertical-align: middle;" name="advant" label="其他" value="04"  onclick="showHidden('advant','04','other');"/><span
				style="vertical-align: middle;">其他</span>
		</label><span id="other_04" style="display:none">（请注明具体的类型）：<input type="text" style="width:250px"  id="advant_other" label="类型选择其他时，请注明具体的类型" maxlength="50"   name="reward/advant_other" value="<x:out select="$xmlData/data/reward/advant_other" />"/></span> 
		<input type="hidden" name="reward/advant_value" id="advant_value" class="required"
			value="<x:out select="$xmlData/data/reward/advant_value" />"
			label="类型" /> 
	<input type="hidden" name="reward/advant_name" id="advant_name"
			value="<x:out select="$xmlData/data/reward/advant_name" />"
			label="类型" /></td>
	</tr>
	<tr>
	    <td nowrap width="10%" align="right">版权/著作权号：</td>
		<td nowrap colspan="2" width="60%"><input 
			name="reward/copyright_number" label="版权/著作权号" type="text" maxlength="50"
			class="input_css required" style="width: 80%" 
			value="<x:out select="$xmlData/data/reward/copyright_number" />" /></td>
		<td nowrap align="right" width="10%">授予时间：</td>
		<td nowrap width="20%" colspan="2">
		    <c:set var="awarded_date"><x:out select="$xmlData/data/reward/awarded_date" /></c:set> 
			<cpt:date id="awarded_date" name="reward/awarded_date" value="${awarded_date}"  className="required date" label="授予时间"></cpt:date>
	    </td>	
	</tr>
	<tr>
		<td nowrap  align="right" width="10%">发行方式：</td>
		<td nowrap width="90%" colspan="5"><input 
			name="reward/type" label="发行方式" type="text" maxlength="50"
			class="input_css required" style="width: 80%;"
			value="<x:out select="$xmlData/data/reward/type" />" /></td>
    </tr>
    <tr>
	    <td nowrap  align="right" width="10%">单价：</td>
		<td nowrap  colspan="2"><input 
			name="reward/price" label="单价" type="text" 
			class="input_css required" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)"
			value="<x:out select="$xmlData/data/reward/price" />" />万元</td>
		<td nowrap  align="right" width="10%">数量：</td>
		<td nowrap width="20%" colspan="2">
		<input name="reward/amount" label="数量" type="text" class="input_css required"  style="text-align:right;" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/reward/amount" />" />部</td>	
	</tr>
	<tr>
		<td nowrap  align="right" >播出单位：</td>
		<td  colspan="2"><input 
			name="reward/org_name" label="播出单位" type="text" 
			class="input_css required"  style="width: 80%;" maxlength="50"
			value="<x:out select="$xmlData/data/reward/org_name" />" /></td>
		<td nowrap  align="right">播出栏目时段：</td>
		<td colspan="2">
		<input name="reward/times" label="播出栏目时段" maxlength="50" type="text" style="width: 80%;" class="input_css required"  
			value="<x:out select="$xmlData/data/reward/times" />" /></td>	
	</tr>
	
	<tr>
		<td nowrap  align="right" >相关衍生产品：</td>
		<td  colspan="5"><input 
			name="reward/product" label="相关衍生产品" type="text" maxlength="50"
			class="input_css required"  style="width: 80%;" 
			value="<x:out select="$xmlData/data/reward/product" />" /></td>
   </tr>
   <tr>
		<td nowrap  align="right">项目首年度实际收入：</td>
		<td colspan="5" ><input 
			name="reward/real_income" label="项目首年度实际收入" type="text" onfocus="InitInput.setNumber(this,7,4,2)"
			class="input_css required" style="text-align:right;" 
			value="<x:out select="$xmlData/data/reward/real_income" />" />万元</td>	
	</tr>
	
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" id="reward2" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;<span class="color_red">*</span>开发/运营自主知识产权游戏产品的单位填写</td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right">申请奖励项目名称：</td>
		<td nowrap colspan="5"><input 
			name="reward/ctitle2" label="申请奖励项目名称" type="text" maxlength="50"
			class="input_css required" style="width: 80%" 
			value="<x:out select="$xmlData/data/reward/ctitle2" />" /></td>
	</tr>
	<tr>
		<td nowrap align="right" valign="middle" width="10%">类型：</td>
		<td nowrap colspan="5" valign="middle" width="90%"><label> <input
				type="checkbox" class="do " id="advant_01"
				style="vertical-align: middle;" name="advant2" label="电脑单机游戏"
				value="01" /><span style="vertical-align: middle;">电脑单机游戏</span>
		</label> <label> <input type="checkbox" class="do " id="advant2_02"
				style="vertical-align: middle;" name="advant2" label="电脑联机游戏"
				value="02" /><span style="vertical-align: middle;">电脑联机游戏</span>
		</label> <label> <input type="checkbox" class="do " id="advant2_03"
				style="vertical-align: middle;" name="advant2" label="手机游戏"
				value="03" /><span style="vertical-align: middle;">手机游戏</span>
		</label><label><input type="checkbox" class="do " id="advant2_04"
				style="vertical-align: middle;" name="advant2" label="其他" value="04"  onclick="showHidden('advant2','04','other2');"/><span
				style="vertical-align: middle;">其他</span>
		</label><span id="other2_04" style="display:none">（请注明具体的类型）：<input type="text" style="width:300px" id="advant2_other2" label="类型选择其他时，请注明具体的类型" maxlength="50"   name="reward/advant2_other2" value="<x:out select="$xmlData/data/reward/advant2_other2" />"/></span> 
		<input type="hidden" name="reward/advant2_value" id="advant2_value" class="required"
			value="<x:out select="$xmlData/data/reward/advant2_value" />"
			label="类型" /> 
	<input type="hidden" name="reward/advant2_name" id="advant2_name"
			value="<x:out select="$xmlData/data/reward/advant2_name" />"
			label="类型" /></td>
	</tr>
	<tr>
	    <td nowrap width="10%" align="right">版权/著作权号：</td>
		<td nowrap colspan="2" width="60%"><input 
			name="reward/copyright_number2" label="版权/著作权号" type="text" maxlength="50"
			class="input_css required" style="width: 80%" 
			value="<x:out select="$xmlData/data/reward/copyright_number2" />" /></td>
		<td nowrap align="right" width="10%">授予时间：</td>
		<td nowrap width="20%" colspan="2">
		    <c:set var="awarded_date2"><x:out select="$xmlData/data/reward/awarded_date2" /></c:set> 
			<cpt:date id="awarded_date2" name="reward/awarded_date2" value="${awarded_date2}"  className="required date" label="版权/著作权号->授予时间"></cpt:date>
	    </td>	
	</tr>
	<tr>
	    <td nowrap width="10%" align="right">相关批文号：</td>
		<td nowrap colspan="2" width="60%"><input 
			name="reward/related_number2" label="相关批文号" type="text" maxlength="50"
			class="input_css required" style="width: 80%" 
			value="<x:out select="$xmlData/data/reward/related_number2" />" /></td>
		<td nowrap align="right" width="10%">授予时间：</td>
		<td nowrap width="20%" colspan="2">
		    <c:set var="awarded2_date2"><x:out select="$xmlData/data/reward/awarded2_date2" /></c:set> 
			<cpt:date id="awarded2_date2" name="reward/awarded2_date2" value="${awarded2_date2}"  className="required date" label="相关批文号->授予时间"></cpt:date>
	    </td>	
	</tr>
	<tr>
		<td nowrap  align="right" width="10%">运营/发行方式：</td>
		<td nowrap colspan="5"><input 
			name="reward/type2" label="运营/发行方式" type="text" maxlength="50" class="input_css required" style="width: 80%;"
			value="<x:out select="$xmlData/data/reward/type2" />" />
		</td>
	    
	</tr>
	<tr>
		<td nowrap  align="right" width="10%">收入模式：</td>
		<td nowrap colspan="5"><input 
			name="reward/model2" label="收入模式" type="text" maxlength="50" class="input_css required" style="width: 80%;"
			value="<x:out select="$xmlData/data/reward/model2" />" />
		</td>
	</tr>
	<tr>
		<td nowrap  align="right" >相关衍生产品：</td>
		<td  colspan="5"><input 
			name="reward/product2" label="相关衍生产品" type="text" maxlength="50"
			class="input_css required"  style="width: 80%;" 
			value="<x:out select="$xmlData/data/reward/product2" />" /></td>
   </tr>
   <tr>
		<td nowrap  align="right">项目首年度实际收入：</td>
		<td colspan="5" ><input 
			name="reward/real_income2" label="项目首年度实际收入" type="text" onfocus="InitInput.setNumber(this,7,4,2)"
			class="input_css required" style="text-align:right;" 
			value="<x:out select="$xmlData/data/reward/real_income2" />" />万元</td>	
	</tr>
	
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" id="reward3" cellspacing="1">
	<tr>
		<td  class="t_bar">&nbsp;<span class="color_red">*</span>获得重要文化产业国际、国家和省级评奖奖励的单位填写</td>
	</tr>
	<tr>
		<td>获奖情况介绍（限1000字）</td>
	</tr>
	
	<tr>
	<td>
	<textarea rows="7" cols="150" name='reward/content' class="input_textarea required  maxlength:1000"   label="获奖情况介绍"><x:out select="$xmlData/data/reward/content"/></textarea>
	<input name="reward/content_hidden" value="" type="hidden"/>
	</td>
	</tr>
	
	
</table>
<script type="text/javascript">
$(document).ready (function() {
	var rewardTypeValue=$("#reward_type_value").val();
	
	if(rewardTypeValue=='01') showHidden('advant','04','other');
	if(rewardTypeValue=='02') showHidden('advant2','04','other2');
	
	rewardRadio(document.getElementById("reward_type_value"));
	
	
});
function showHidden(id1,sum,id2){

	if($("#"+id1+"_"+sum).attr("checked")=="checked"){
		$("#"+id2+"_"+sum).show();
		$("#"+id1+"_"+id2).addClass("required");
	}
	else{
		$("#"+id2+"_"+sum).hide();
		$("#"+id1+"_"+id2).removeClass("required");
		$("#"+id1+"_"+id2).val("");
	}
}

function rewardRadio(obj){
	if(obj.value=='01'){
		$("#reward2").hide();
		$("#reward1").show();
		$("#reward3").hide();
	}
	else if(obj.value=='02'){
		$("#reward2").show();
		$("#reward1").hide();
		$("#reward3").hide();
		
	}
	else if(obj.value=='03'){
		$("#reward3").show();
		$("#reward1").hide();
		$("#reward2").hide();
		
	}
	else{
		$("#reward2").hide();
		$("#reward1").hide();
		$("#reward3").hide();
			
	}
		
	
	

}



</script>
